// import 'package:flutter/cupertino.dart';
// import 'package:fluttertest/utils/helper.dart';
//
// const Type _HOME_ = IndexPage;
//
// final Map<String,WidgetBuilder> _ROUTES_ = Helper.typeNameMap({...});
//
//
//
//
// final class MyRouter{
//   static RT of<RT extends RouterBridge>(BuildContext context){
//     assert(RT!=RouterBridge<dynamic>,"必须传入route类型");
//     final name = Helper.typeName(RT);
//     assert(hasName(name),"route$RT没有注册");
//   }
//
//   static Future<T?> routeTo<T extends Object?>(BuildContext context,Type router){
//     assert(router!=RouterBridge<dynamic>,"你的路由类型必须是routerbrige");
//     final name = Helper.typeName(router);
//     assert(hasName(name),"route$router没有注册");
//     return Navigator.pushNamed<T>(context, name);
//   }
// }
//
// mixin RouterBridge<RT_ARG_TYPE>{
//   MyRouter arguments(RT_ARG_TYPE args) => MyRouter._withArguments(args);
//
// }